import request from "../utils/request";
// 公益中心Welfare
// https://ku.qingnian8.com/dataApi/news/newslist.php
// 获取公益中心数据 
export const reqWelfare = ({pageNo,pageSize}) => new Promise((resolve, reject) => {
  wx.request({
    data:{
      num:pageSize,
      page:pageNo
    },
    url: "https://ku.qingnian8.com/dataApi/news/newslist.php",
    success: (result) => {
      resolve(result)
    },
    fail: (err) => {
      reject(err)
    },
  });
})
// request({url:'/article/getTopWeekChart',method:'GET',data});